<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html>
<head>
<title>${post.title } - IT答案网</title>
<meta name="keywords" content="${post.title },IT搜索,问题搜索,Web前端,企业架构,编程语言,互联网,系统运维,云计算,数据库,移动开发,JAVA问题,Android问题,IOS问题,c/c++问题,解决方案" />
<meta name="description" content="${post.title }" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="${path }/css/all.css?version=${version }" rel="stylesheet">
<link href="${path }/css/prettify.css?version=${version }" rel="stylesheet">
</head>
<body onload="prettyPrint()">
	<jsp:include page="head.jsp"></jsp:include>
	<div class="container container1000">
		<div class="row-fluid m_b_20">
			<div class="span2" id="logo">
				<center>
					<a href="${path }/index.html"><img src="${path }/img/logo-1.png?version=${version }" class="h_30"/></a>
				</center>
			</div>
			<div class="span6">
				<form class="form-search" action="${path }/so" name="search-form">
					<div class="input-append span10">
						<center>
							<input type="text" class="span12 search-query"
								name="q" value="" placeholder=" 在4539596个IT解决方案中搜索..." baiduSug="1">
							<button type="submit" class="btn btn-success">搜索答案</button>
						</center>
					</div>
				</form>
			</div>
			<div class="offset1 span3 visible-desktop"><a class="btn" href="${path }/so?q=${post.title }"><i class="icon-random"></i>搜索本文相关内容</a></div>
		</div>
		<div class="row-fluid">
			<div class="span9 w_700">
			    <div class="content_div">
			      <center><h3>${post.title }</h3></center>
			      <c:set value="${fn:split(post.postTime,'✄')}" var="postTimes" />
			      <input type="hidden" name="voteNum" value="${post.voteNum }"/>
			      <div class="postinfo">
			      <i class="icon-time"></i>&nbsp;<span>${fn:substring(postTimes[0],0,10) }</span>
			      <i class="icon-eye-open"></i>&nbsp;<span>${post.viewNum }&nbsp;</span>
			      <span id="labelvote" >邀您评分</span>：<span id="votes"></span>&nbsp;&nbsp;<span id="hint"></span>
                  <a class="btn btn-mini btn-collection" href="javascript:void(0)"><i class="icon-gift"></i> 收藏  ${post.collectionNum == 0 ? '' : post.collectionNum}</a>&nbsp;&nbsp;			      
			      </div>
			      <hr/>
			      <div class="ad_title_down"><script type="text/javascript">ad_title_down();</script></div>
	              <div class="media-body" id="content_div">
					 <c:set value="${post.content }" var="content" />
					 <c:set value="${fn:split(content,'✄')}" var="postContents" />    
					<c:forEach items="${postContents }" var="postContent" varStatus="status">
					     <div class="popover">
					       <h3 class="popover-title">#${status.index+1 }楼 </h3>
					       <div class="popover-content">
					         ${postContent }
					       </div>
					     </div>			      
					</c:forEach>	              
	              </div>
			    </div>
			    <div class="ad_content_down"><script type="text/javascript">ad_content_down();</script></div>
			    <!-- 分享开始 -->
			    <div class="share_div_">
					<div class="ds-share flat" data-thread-key="${post.id }" data-title="${post.title }" data-images="${path }/view/portal/img/logo-1.png" data-content="${post.title }" data-url="${path }/faq/${fn:replace(fn:substring(postTimes[0],0,10) ,'-','/') }/${post.id }.html">
					    <div class="ds-share-inline">
					      <ul  class="ds-share-icons-16">
					      	<li data-toggle="ds-share-icons-more"><a class="ds-more" href="javascript:void(0);">分享到：</a></li>
					        <li><a class="ds-weibo" href="javascript:void(0);" data-service="weibo">微博</a></li>
					        <li><a class="ds-qzone" href="javascript:void(0);" data-service="qzone">QQ空间</a></li>
					        <li><a class="ds-qqt" href="javascript:void(0);" data-service="qqt">腾讯微博</a></li>
					        <li><a class="ds-wechat" href="javascript:void(0);" data-service="wechat">微信</a></li>
					      </ul>
					      <div class="ds-share-icons-more">
					      </div>
					    </div>
					 </div>			    
			    </div>
			    <!-- 分享结束 -->
			    <!-- 评论框开始 -->
			    <div class="comment_div">
					<div class="ds-thread" data-thread-key="${post.id }" data-title="${post.title }" data-url="${path }/faq/${fn:replace(fn:substring(postTimes[0],0,10) ,'-','/') }/${post.id }.html"></div>
					<script type="text/javascript">
					var duoshuoQuery = {short_name:"itdaan"};
						(function() {
							var ds = document.createElement('script');
							ds.type = 'text/javascript';ds.async = true;
							ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
							ds.charset = 'UTF-8';
							(document.getElementsByTagName('head')[0] 
							 || document.getElementsByTagName('body')[0]).appendChild(ds);
						})();
						</script>			      
			    </div>
			     <fieldset>
                   <legend>本站声明</legend>
			        <div class="notice">本文转载自：<a href="${post.url }" target="_blank" rel="nofollow">${post.url }</a>&nbsp;&nbsp;&nbsp;&nbsp;
			                          作者：${fn:split(post.author,'✄')[0]} &nbsp;&nbsp;&nbsp;&nbsp;发布日期：${postTimes[0] }
			        &nbsp;&nbsp;&nbsp;&nbsp;本站转载的文章为个人学习借鉴使用，本站对版权不负任何法律责任。如果侵犯了您的隐私权益，请联系我们删除。<br/></div>                
                 </fieldset>			    
                 <br/><br/>	    
			</div>
			<div class="span3 left_content">
			   <div class="list-group-head" href="javascript:void(0)"><i class="icon-th-list icon-white"></i><span style="margin-left:5px">猜您在找</span></div>
			   <c:forEach items="${relateds }" var="item">
			     <c:if test="${item.isHtmlCreated == 1 }">
			       <a class="list-group-item" href="${path }/<c:if test='${item.typeId == 1 }'>blog</c:if><c:if test='${item.typeId == 2 }'>faq</c:if>/${item.postTimeStr }/${item.id }.html" title="${item.title }"><i class="icon-file"></i> ${item.title }</a>
			     </c:if>
			     <c:if test="${item.isHtmlCreated == 0 }">
			       <a class="list-group-item" href="${path }/post-${item.typeId }-${item.id }.html" title="${item.title }"><i class="icon-file"></i> ${item.title }</a>
			     </c:if>			     
			   </c:forEach>
			   <script type="text/javascript">ad_left_content_down();</script>
			</div>			
		</div>
	</div>
    <div class="clear">&nbsp;</div>
    <input name="id" value="${post.id }" type="hidden"/>
    <input name="typeId" value="${post.typeId }" type="hidden"/>
    <input name="path" value="${path }" type="hidden"/>
    <input name="fullPath" value="${path }/faq/${fn:replace(fn:substring(postTimes[0],0,10) ,'-','/') }/${post.id }.html" type="hidden"/>
    <jsp:include page="bottom.jsp"></jsp:include>
    <script type="text/javascript">
	    adcontent();//内文
    </script>    
</body>
</html>